package com.homni.iomix_xair.view;

import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.homni.iomix_xair.R;

/**
* @description： 自定义的seekbar组合控件
* @author： D
* @time：2016/6/7 11:52
* @version:0
*
*/
public class CustomSeekbarGroup extends LinearLayout {


    public TextView mSeekbarValueTxt;
    public TextView mChannelNoTxt;
    public VerticalSeekbar mCustomSeekbar;
    public ColorProgress mColorProgress;

    public CustomSeekbarGroup(Context context) {
        super(context);
    }

    public CustomSeekbarGroup(Context context, AttributeSet attrs){
        super(context,attrs);

        TypedArray array = context.obtainStyledAttributes(attrs, R.styleable.CustomSeekbarGroup);
        String mDbValue = array.getString(R.styleable.CustomSeekbarGroup_db_value);
        String mChannelNo = array.getString(R.styleable.CustomSeekbarGroup_channel_no);

        array.recycle();

        LayoutInflater.from(context).inflate(R.layout.custom_seekbar_group,this,true);
        mSeekbarValueTxt = (TextView) findViewById(R.id.tv_seekbar_value);
        mChannelNoTxt = (TextView) findViewById(R.id.tv_channel_no);
        mCustomSeekbar = (VerticalSeekbar) findViewById(R.id.custom_seekbar);
        mColorProgress = (ColorProgress) findViewById(R.id.custom_color_progress);

    }
}
